Many different versions of HTML and XHTML tags as well as rules have been changed to reflect new standards in web coding. In HTML, Transitional tag attributes do not need quotation marks. However, in XHTML, all tags require them. In XHTML, all tags must be closed, even sort tags like <br> and <img>. HTML text can be placed anywhere in the document. In XHTML, the rules change and all text must be in a paragraph, header, span, or equivalent tag. All tags must be lowercase. For example, <P> must be <p>. Most of the changes that come to XHTML are the removal of non-CSS formatting code, proper closure and placement of tags.
10 Common Tags that change
<br> to <br/><img> to <img/><html> to <html xmlns="http://www.w3.org/1999/xhtml"><hr> to <hr/><meta> to <meta/><link> to <link/><param> to <param/><input> to <input/><option> to <option/><col> to <col/>
Code snippets that change
Normal Text
In HTML
<body>
This is text that is free floating and would work with HTML
</body>
IN XHTML
<body><p>Free floating text must be put into paragraph tags in XHTML</p></body>
HTML / XHTML How To
Summary
Many different versions of HTML and XHTML tags as well as rules have been changed to reflect new standards in web coding. In HTML, Transitional tag attributes do not need quotation marks. However, in XHTML, all tags require them. In XHTML, all tags must be closed, even sort tags like <br> and <img>. HTML text can be placed anywhere in the document. In XHTML, the rules change and all text must be in a paragraph, header, span, or equivalent tag. All tags must be lowercase. For example, <P> must be <p>. Most of the changes that come to XHTML are the removal of non-CSS formatting code, proper closure and placement of tags.
10 Common Tags that change
Code snippets that change
Normal Text
In HTML
IN XHTML
Tag Nesting
In HTML
In XHTML
Attribute Quoting
In HTML
<table width=800></table>In XHTML
<table width="800"></table>Name vs. ID Attribute
In HTML
In XHTML
The Blockquote
IN HTML
IN XHTML
Web Resources
W3 Schools
- Learn about many different web languages from HTML / XML / JavaScript / AJAX and morehttp://www.w3schools.com
Web Monkey
- Tutorials for the web, and some cheat sheets as wellhttp://www.webmonkey.com/
About.com Web Design
- Host of many good tutorials for web languageshttp://webdesign.about.com/